import 'package:flutter/material.dart';
import 'package:hktk_app/widget/back_button_widget.dart';

class ActionGuide extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _ActionGuideState();
  }
}

class _ActionGuideState extends State<ActionGuide> {
  @override
  Widget build(BuildContext context) {
    // 
    return Scaffold(
      backgroundColor: Colors.white,
      body: SafeArea(
          child: Column(
        spacing: 16,
        children: [
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 10),
            child: Align(
              alignment: Alignment.centerLeft, // 单独设置左对齐
              child: BackButtonWidget.back(pageContext: context),
            ),
          ),
          Container(
              decoration: BoxDecoration(
                  color: Color(0xffE3EDFF),
                  borderRadius: BorderRadius.circular(8)),
              margin: EdgeInsets.symmetric(horizontal: 16),
              padding: EdgeInsets.symmetric(horizontal: 16),
              child: GestureDetector(
                  onTap: () {
                    Navigator.pushNamed(context, "/toggle-guide");
                  },
                  child: SizedBox(
                    height: 40,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      mainAxisSize: MainAxisSize.max,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Expanded(child: Text("切换考试科目")),
                        Icon(Icons.keyboard_arrow_right)
                      ],
                    ),
                  ))),
          Container(
              decoration: BoxDecoration(
                  color: Color(0xffE3EDFF),
                  borderRadius: BorderRadius.circular(8)),
              margin: EdgeInsets.symmetric(horizontal: 16),
              padding: EdgeInsets.symmetric(horizontal: 16),
              child: GestureDetector(
                  onTap: () {
                    Navigator.pushNamed(context, "/video-guide");
                  },
                  child: SizedBox(
                    height: 40,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      mainAxisSize: MainAxisSize.max,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Expanded(child: Text("视频下载")),
                        Icon(Icons.keyboard_arrow_right)
                      ],
                    ),
                  ))),
        ],
      )),
    );
  }
}
